#!/bin/bash

if [ -z $1 ]; then
	echo "Usage: $0 path/to/types/dir"
	exit 1
fi

BASEDIR="$PWD/$1"

MKSED="$PWD/`dirname $0`/mksed.sh"

cd $BASEDIR

for d1 in `ls`; do
	if [ -d $d1 ]; then
		cd $d1;
		for d2 in `ls`; do
			if [ -d $d2 ]; then
				$MKSED $d2
				svn propset svn:mime-type image/png $d2/sed.png > /dev/null
			fi
		done
		cd ..
	fi
done
